package final2107.day05.construtorMetRef;

public class StudentTest {
    //定义static方法,让接口作为参数出现
    public static Student getStudent(String name,StudentOpe studentOpe){
        return studentOpe.getStuByName(name);
    }

    public static void main(String[] args) {
//        Student student = getStudent("tom",name-> new Student(name));

        Student student = getStudent("jack",Student::new);
        System.out.println(student);
    }
}
